package com.korion.android.devicedemon.core

import android.os.Build
import com.google.gson.annotations.SerializedName

data class SmsMessage(
        @SerializedName("from")
        var from: String = "",
        @SerializedName("timestamp")
        var timestamp: Long = 0,
        @SerializedName("content")
        var content: String = "",
) {
    constructor() : this("", 0, "")

    override fun toString(): String {
        return "From:$from\nTime:${SmsUtils.formatTime(timestamp)}\nModel:${Build.BRAND} ${Build.MODEL}\n$content"
    }
}
